<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图位置</title>
    <style>
        div {
            width: 400px;
            height: 400px;
            background-color: red;
            background-image: url(./images/1.png);
            background-repeat: no-repeat;
            /* 左上角 */
            /* background-position: 0 0; */
            /* background-position: left top; */

            /* background-position: right bottom; */
            /*水平方向：正数像右 负数向左  */
            /* background-position: 50px 0; */
            /* background-position: -50px 0; */
            /* 垂直：正数向下 负数向上 */
            /* background-position: 0 100px; */
            /* background-position: 0 -100px; */

            /* background-position: 50px center; */

            /* 特殊写法 */
            /* background-position: bottom left; */

            /* 关键字 可以只写一个 另一个方向居中 */
            /* background-position:  bottom; */

            background-position: 50px;












        }
    </style>
</head>

<body>
    <div>
        标签
    </div>
</body>

</html>